<template>
  <header class="app-header">
    <div class="header-left">
      <!-- <img src="/logo.png" alt="logo" class="logo" /> -->
      <h1>智慧社区管理系统</h1>
    </div>
    <div class="header-right">
      <span class="user-info">欢迎您，管理员</span>
      <el-avatar size="32" icon="el-icon-user" style="margin-left: 12px; background: #fff; color: #42b983;" src="https://tse2-mm.cn.bing.net/th/id/OIP-C.dJanjWldhCvuQcZrzuSfDwHaHo?w=203&h=209&c=7&r=0&o=7&dpr=1.5&pid=1.7&rm=3"/>
    </div>
  </header>
</template>

<script>
export default {
  name: 'AppHeader'
}
</script>

<style scoped>
.app-header {
  background-size: 200% 200%;
  animation: gradientFlow 15s ease infinite;
  height: 64px;
  width: 100%;
  background: linear-gradient(90deg, #0f172a 0%, #1e40af 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5), 0 2px 12px rgba(14, 55, 145, 0.3);
  border-top-left-radius: 18px; border: 1px solid rgba(56, 189, 248, 0.3);
  border-top-right-radius: 18px;
}
.header-left {
  display: flex;
  align-items: center;
}
.logo {
  width: 38px;
  height: 38px;
  margin-right: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
  background: #fff;
}
.header-right {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: normal;
}
.user-info {
  margin-right: 4px;
  color: #38bdf8;
}
</style>
